
//
//  UILabel+Extension.swift
//  新浪微博
//
//  Created by 徐绩 on 16/4/16.
//  Copyright © 2016年 ayumi. All rights reserved.
//

import UIKit


extension UILabel {
    
    convenience init (textColor:UIColor, fontSize:CGFloat, preferredMaxLayoutWidth:CGFloat = 0) {
        
        self.init()
        self.textColor = textColor
        self.font = UIFont.systemFontOfSize(fontSize)
        
        if preferredMaxLayoutWidth > 0{
            
            self.preferredMaxLayoutWidth = preferredMaxLayoutWidth
            self.numberOfLines = 0
        }
        
    }
    
}